import threading

from pymysql import connect


def main():
    conn = connect(host="101.132.36.174", port=3306, user='zhy', password='zhy', database='diaoyukuang', charset='utf8')
    cursor = conn.cursor()

    cursor.execute("SELECT * FROM tb_member;")

    data = cursor.fetchall()
    for item in data:
        print(item)

    # for i in threading.enumerate():
    #     print(i.isDaemon())

    cursor.close()
    conn.close()


if __name__ == '__main__':
    main()

